import requests
import re
import os
url = "https://v.qq.com/x/cover/mzc00200prv7r23/w0041ehjows.html"
r   = requests.get(url)
r.encoding =r.apparent_encoding
text = re.search('<link rel=\"canonical\" href=\"([\s\S]*?)\"',r.text).groups()[0]
print(text)


def merge_file_windows(path,name):
    cwd = os.getcwd()
    print(cwd)
    cmd = 'copy /b ' + path + '*.ts ' + name + '.mp4'
    print(cmd)
    os.system(cmd)



path="D:\\phpstudy_pro\\WWW\\spider\\express\\tenxun\\reset\\1"
merge_file_windows(path,"sss")






